/**
 * Property.java
 * ************************** 
 * @date Mar 30, 2011
 * @author Michele Tamburini
 * 
 * **************************
 */
package gossipServices.slicing;

import java.io.Console;

/*import org.hyperic.sigar.CpuInfo;
import org.hyperic.sigar.CpuPerc;
import org.hyperic.sigar.Mem;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;*/


/**
 * Description: 
 *
 */
public class Property {

	public void prop(){}
		/*
		Console cons = System.console();
//		PrintWriter consolePrinter = cons.writer();
		Sigar sig = new Sigar();
		 try {
			CpuInfo[] cpuinfo = sig.getCpuInfoList();
			
			//CPU
			print("CPU info:");
			for(int i=0; i< cpuinfo.length; i++)
				System.out.println(cpuinfo[i]);
			
			print("CPU perc:");
			CpuPerc[] cpuPerc = sig.getCpuPercList();
			for(int i=0; i< cpuinfo.length; i++)
				System.out.println(cpuPerc[i]);
			
			print("NET info:");
			org.hyperic.sigar.NetInfo net = sig.getNetInfo();
			print(net.toString());
			
			Mem mem = sig.getMem();			
			print("MEMORY");
			print("ram: "+mem.getRam());
			print("total: "+(mem.getTotal()/1024)+ " KB");
			print("actual free: "+(mem.getActualFree()/1024) +" KB");
			print("actual used: "+(mem.getUsed()/1024)+ " KB");
			print(mem.toString());
			
		} catch (SigarException e) {
			e.printStackTrace();
		}
	}
	*/
	private void print(String s){
		System.out.println(s);
	}
}
